import { createLoaders } from "yh-scriptloader";
console.log('createLoaders - ',createLoaders);
const mapjs = `https://webapi.amap.com/maps?v=2.0&key=0937dceed73743b86a78e21f78c12054`;

const mapUI = "https://webapi.amap.com/ui/1.1/main.js";

const srcs = [[{ src: mapjs }, { src: mapUI }]];
const loaders = createLoaders(srcs);
loaders.loading(() => {
  console.log("scriptloader - loading",window.AMap);
});
